]> dgit.raspbian.org Git - gnome-shell.git/commit
Use gdk_screen_get_primary_monitor on gtk-2.20.1+
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 12 May 2010 07:35:32 +0000 (09:35 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 12 May 2010 07:35:32 +0000 (09:35 +0200)
commit410dfb2da307d5a30976fb596f1edb7784165a54
tree7880e8fa70e43de97efc5cb2e24013641d2d1609
parent74ccdbf3a9c7ecc9ee08d439df144ccb2e7a142d
Use gdk_screen_get_primary_monitor on gtk-2.20.1+

Starting with gtk-2.20.0 there is a gdk_screen_get_primary_monitor,
which supports querying the primary monitor from xrandr.

But due to a sorting bug and lack of heuristics in the fallback path,
it isn't really useable.

Those bugs are fixed in gtk-2.20.1, so use it when building with
gtk-2.20.1+.

https://bugzilla.gnome.org/show_bug.cgi?id=608647
src/shell-global.c